/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controlleur.util;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 *
 * @author couett'
 */
public class UtilDate {

    public static Calendar getDateDuJour(){
        GregorianCalendar gc = new GregorianCalendar();
        gc.setTime(new Date());
        return gc;
    }

    public static Calendar getDateDuJour(int h, int m, int s){
        GregorianCalendar gc = new GregorianCalendar();
        gc.setTime(new Date());
        gc.set(GregorianCalendar.HOUR, h);
        gc.set(GregorianCalendar.MINUTE, m);
        gc.set(GregorianCalendar.SECOND, s);
        return gc;
    }

    public static Calendar getDateDuJourMin(){
        return getDateDuJour(0, 0, 0);
    }

    public static Calendar getDateDuJourMax(){
        return getDateDuJour(23, 59, 59);
    }

}
